package net.dreamlu.iot.mqtt.core.server.http.api;

import org.tio.http.common.HttpRequest;
import org.tio.http.common.HttpResponse;
import org.tio.http.common.Method;

/**
 * @author: chenlf
 * @date: 2023/9/5
 * @description: MqttHttpRoute
 **/
public interface MqttHttpRoute {
    default Method method() {
        return Method.GET;
    }
    String path();

    HttpResponse invoke(HttpRequest httpRequest);
}
